import { defineComponent } from "vue";
import style from "./index.module.less";
import { phoneProps } from "./types";
export default defineComponent({
  name: "phone-view",
  props: phoneProps,
  setup(_, { slots }) {
    return () => {
      return (
        <span
          class="text-[#2073EB] text-[14px]"
          onClick={() => (location.href = "tel://" + _.phone)}
        >
          {_.phone}
        </span>
      );
    };
  },
});
